<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:a4j="http://richfaces.org/a4j"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets">

<h:head></h:head>
<body>
	<ui:composition template="/template/mainLayout.xhtml">
		<ui:param name="windowsTitle" value="Alta Rubro"></ui:param>
		<ui:define name="bodyContent">


			<rich:panel styleClass="tabla">
				<h:form styleClass="tabla">
					<fieldset class="tabla" style="width: 500px;">
					<h:panelGrid columns="2" styleClass="texto">
						<h:outputLabel value="Descripción (max 45 carateres)"
							for="descRubro" />
						<h:inputText id="descRubro" value="#{rubroBean.rubro.nombre}"
							maxlength="45" required="true"
							requiredMessage="Ingrese un valor para la descripción." style="width: 280px; margin-left:4px;" />
						<h:commandButton action="#{rubroBean.crearRubro}" style="width: 100px;" value="Crear" />
						<h:commandButton action="listadoRubro" value="Cancelar" immediate="true"/>
						
					</h:panelGrid>
					</fieldset>
				</h:form>
			</rich:panel>
		</ui:define>
	</ui:composition>
</body>
</html>
